package validator

import (
	"gitee.com/csingo/cValidator"
)

type HelloValidator struct{}

func (i *HelloValidator) ValidatorName() (app, name string) {
	return "demo", "HelloValidator"
}

func (i *HelloValidator) Rules() map[string][]*cValidator.ValidatorRule {
	return map[string][]*cValidator.ValidatorRule{
		"Say": {
			{Field: "name", Rules: "required"},
		},
	}
}
